package com.huaxin.hxcloud.fragment;

import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.huaxin.common.BaseActivity;
import com.huaxin.common.BaseFragment;
import com.huaxin.common.Entity.BannerEntity;
import com.huaxin.common.view.wheelview.BannerShow;
import com.huaxin.hxcloud.R;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;


/**
 * Created by Administrator on 2016/9/7.
 */
public class PromotionFragment extends BaseFragment {


    @BindView(R.id.more)
    ImageView more;
    @BindView(R.id.tv_unread)
    TextView tvUnread;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.banner_show)
    BannerShow bannerShow;

    List<BannerEntity> _banners = new ArrayList<>();
    @Override
    protected int getContentViewId() {
        return R.layout.fragment_pager_promotion;
    }

    @Override
    protected void initView(View view) {
        super.initView(view);
        toolbar.setTitle("领先的智慧水务云产品运营商");
        toolbar.setNavigationIcon(R.drawable.icon_logo4);
    }

    @Override
    protected void initData() {
        super.initData();
        bannerShow.initData(getContext());

    }

    @Override
    protected void onResumeView() {
        super.onResumeView();
        ((BaseActivity) getActivity()).setSupportActionBar(toolbar);
        toolbar.setNavigationOnClickListener(null);
    }
}
